#ifndef SWIRLCIRCLES_H
#define SWIRLCIRCLES_H

#include "Effects/RGBEffect.h"
#include "Curve/hsv.h"

class SwirlCircles : public RGBEffect
{

public:
    SwirlCircles();
    ~SwirlCircles();

    //EFFECT_REGISTERER(ClassName(), CAT_ADVANCED, [](){return new SwirlCircles;});

    static std::string const ClassName() {return "SwirlCircles";}
    //void DefineExtraOptions(QLayout*) override;
    void StepEffect(ControllerZone* const controller_zone) override;
    //void SetUserColors(std::vector<RGBColor> colors) override;
    void SetRandomColorsEnabled(bool value) override;
    //void LoadCustomSettings(json) override;
    //json SaveCustomSettings(json) override;

//private slots:
//    void on_radius_valueChanged(int);

private:
    //Ui::SwirlCircles *ui;
    double progress = 0.0;
    int radius = 0;

    void ResetUserColors();

    hsv_t hsv1;
    hsv_t hsv2;

    RGBColor GetColor(unsigned int, unsigned int,  unsigned int,  unsigned int, float, float);

};

#endif // SWIRLCIRCLES_H
